Copyright 1988 by Sam Thornton, PO Box 123, Fairfield NE 68938
Some portions Copyright by Symantec and Apple.
May be copied and distributed for personal use without charge only, except for nominal distribution fees. For commercial use or distribution, contact the author.
Provided as a RESEDIT file. Use RESEDIT or any other resource copying utility to install into HyperCard. Install in Home stack for universal access.
An implementation of the Macintosh SysEnvirons info that speaks English as a first language.
SysEnvirons allows you to pinpoint the kind of hardware environment in which your stack will be running. Nice if you plan to distribute a stack to a large number of users who probably will have a wide variety of setups, requiring you to juggle some of your scripts. Returns the following information:
AppleTalk (off/on and version)
ColorQuickDraw availability
Presence of fast math board
Keyboard version installed
The model Macintosh in use
The amount of memory installed
The CPU version number
The System version number
Version number of System SysEnvirons
Syntax:
get SysEnvirons( < keyword > )
SAMPLE SCRIPT:
if SysEnvirons("AppleTalk") is "not installed" then
answer "Please turn on AppleTalk before proceeding."
end if
Use the following keywords to obtain the indicated returns: (we're not case-sensitive here but make sure you include the quotes around keywords or put them into a variable)